import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import app from './modules/app'
import settings from './modules/settings'
import user from './modules/user'
import Layout from '@/layout'


Vue.use(Vuex)

const store = new Vuex.Store({
  state:{
    lab:[],
    name:null,
    shengqinglab:[],
    urouterPage:{
      path: '/shenhe',
      component: Layout,
      children: [
        {
          path: 'shenhe',
          name: '实验室使用审核',
          component: () => import('@/views/shenhe/index'),
          meta: { title: '审核', icon: 'shenhe' }
        }
      ]
    }
  },
  mutations:{
      setLab(state,form){
          state.lab.push(form);
      },
      setName(state,form){
        state.name=form;
    }
  },
  modules: {
    app,
    settings,
    user,
  },
  getters
})

export default store
